import request from "@/utils/request";

// 获取列表
export function getAllList(query) {
  return request({
    url: `/hca/getHouseCategoryArea`,
    method: "get",
    params: query,
  });
}

// 修改
export function updateData(data) {
  return request({
    url: "/hca/toUpdate",
    method: "post",
    data:data
  });
}

// 查看
export function getDetail(id) {
  return request({
    url: "/hca/updatePage",
    method: "get",
    params:id
  });
}

//删除
export function del(id) {
  return request({
    url: "/hca/delete",
    method: "post",
    data:{
    	xshcaId:id
    }
  });
}

// 获取评估子区列表
export function getSubList(query) {
  return request({
    url: `/floorArea/getPage`,
    method: "get",
    params: query,
  });
}
export function getProvinceList(xsemCode) {
  return request({
    url: `/hca/getProvinceList`,
    method: "get",
    params: {
    	xsemCode:xsemCode
    },
  });
}
export function getAreaList(query) {
  return request({
    url: `/hca/getAreaList`,
    method: "get",
    params: query,
  });
}
export function mathHouseCategoryArea(query) {
  return request({
    url: `/hca/mathHouseCategoryArea`,
    method: "get",
    params: query,
  });
 
}

// 查看
export function getName(attachId) {
  console.log(attachId,'chuanzan');
  return request({
    url: `/attachment/getAttachment`,
    method: "get",
    params: {attachId:attachId},
  });
}
